<h1>Listing guests</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Cpf</th>
    <th>Passport</th>
    <th>Birthdate</th>
    <th>Street</th>
    <th>Complement</th>
    <th>Num</th>
    <th>Phone</th>
    <th>Cellphone</th>
  </tr>

<% @guests.each do |guest| %>
  <tr>
    <td><%=h guest.name %></td>
    <td><%=h guest.cpf %></td>
    <td><%=h guest.passport %></td>
    <td><%=h guest.birthdate %></td>
    <td><%=h guest.street %></td>
    <td><%=h guest.complement %></td>
    <td><%=h guest.num %></td>
    <td><%=h guest.phone %></td>
    <td><%=h guest.cellphone %></td>
    <td><%= link_to 'Show', guest %></td>
    <td><%= link_to 'Edit', edit_guest_path(guest) %></td>
    <td><%= link_to 'Destroy', guest, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New guest', new_guest_path %>